.class Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$4;
.super Ljava/lang/Object;
.source "CategoryAdapter.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;

    .prologue
    .line 371
    iput-object p1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$4;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 11
    .param p1, "v"    # Landroid/view/View;

    .prologue
    const/4 v8, 0x0

    .line 375
    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$4;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;

    iget-boolean v6, v6, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->isAnimating:Z

    if-eqz v6, :cond_8

    .line 415
    :goto_7
    return-void

    .line 378
    :cond_8
    const/high16 v6, 0x7f0a0000

    invoke-virtual {p1, v6}, Landroid/view/View;->getTag(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/model/CategoryAppModel;

    .line 379
    .local v0, "categoryAppModel":Lcom/brixd/niceapp/model/CategoryAppModel;
    iget v6, v0, Lcom/brixd/niceapp/model/CategoryAppModel;->isApp:I

    if-eqz v6, :cond_1a

    iget v6, v0, Lcom/brixd/niceapp/model/CategoryAppModel;->minSdkVer:I

    sget v7, Landroid/os/Build$VERSION;->SDK_INT:I

    if-le v6, v7, :cond_20

    .line 380
    :cond_1a
    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$4;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;

    # invokes: Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->gotoDetailActivity(Lcom/brixd/niceapp/model/CategoryAppModel;)V
    invoke-static {v6, v0}, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->access$500(Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;Lcom/brixd/niceapp/model/CategoryAppModel;)V

    goto :goto_7

    .line 384
    :cond_20
    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$4;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;

    # setter for: Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->currentDownloadBtn:Landroid/view/View;
    invoke-static {v6, p1}, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->access$002(Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;Landroid/view/View;)Landroid/view/View;

    .line 385
    invoke-virtual {p1, v8}, Landroid/view/View;->setEnabled(Z)V

    .line 386
    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$4;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;

    iput-boolean v8, v6, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->needCollapseOtherView:Z

    .line 387
    const v6, 0x7f0a0001

    invoke-virtual {p1, v6}, Landroid/view/View;->getTag(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/View;

    .line 389
    .local v1, "convertView":Landroid/view/View;
    invoke-virtual {v0}, Lcom/brixd/niceapp/model/CategoryAppModel;->isExpanded()Z

    move-result v6

    if-nez v6, :cond_98

    .line 391
    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$4;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;

    # getter for: Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->mListView:Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;
    invoke-static {v6}, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->access$300(Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;)Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;

    move-result-object v6

    invoke-virtual {v6}, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;->getChildCount()I

    move-result v2

    .line 392
    .local v2, "count":I
    const/4 v3, 0x0

    .local v3, "i":I
    :goto_46
    if-ge v3, v2, :cond_77

    .line 393
    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$4;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;

    # getter for: Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->mListView:Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;
    invoke-static {v6}, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->access$300(Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;)Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;

    move-result-object v6

    invoke-virtual {v6, v3}, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    .line 394
    .local v4, "view":Landroid/view/View;
    if-ne v4, v1, :cond_57

    .line 392
    :cond_54
    :goto_54
    add-int/lit8 v3, v3, 0x1

    goto :goto_46

    .line 397
    :cond_57
    const v6, 0x7f0a0002

    invoke-virtual {v4, v6}, Landroid/view/View;->getTag(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/brixd/niceapp/model/CategoryAppModel;

    .line 398
    .local v5, "viewObject":Lcom/brixd/niceapp/model/CategoryAppModel;
    if-eqz v5, :cond_54

    invoke-virtual {v5}, Lcom/brixd/niceapp/model/CategoryAppModel;->isExpanded()Z

    move-result v6

    if-eqz v6, :cond_54

    .line 399
    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$4;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;

    # getter for: Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->mListView:Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;
    invoke-static {v6}, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->access$300(Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;)Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;

    move-result-object v6

    invoke-virtual {v6, v4, v5}, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;->collapseView(Landroid/view/View;Lcom/zuimeia/suite/expandablecell/listview/ExpandableListItem;)V

    .line 400
    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$4;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;

    const/4 v7, 0x1

    iput-boolean v7, v6, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->needCollapseOtherView:Z

    goto :goto_54

    .line 404
    .end local v4    # "view":Landroid/view/View;
    .end local v5    # "viewObject":Lcom/brixd/niceapp/model/CategoryAppModel;
    :cond_77
    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$4;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;

    iget-boolean v6, v6, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->needCollapseOtherView:Z

    if-eqz v6, :cond_88

    .line 405
    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$4;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;

    # setter for: Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->currentExpandCategoryAppModel:Lcom/brixd/niceapp/model/CategoryAppModel;
    invoke-static {v6, v0}, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->access$202(Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;Lcom/brixd/niceapp/model/CategoryAppModel;)Lcom/brixd/niceapp/model/CategoryAppModel;

    .line 406
    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$4;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;

    # setter for: Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->currentExpandView:Landroid/view/View;
    invoke-static {v6, v1}, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->access$102(Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;Landroid/view/View;)Landroid/view/View;

    goto :goto_7

    .line 408
    :cond_88
    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$4;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;

    # getter for: Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->mListView:Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;
    invoke-static {v6}, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->access$300(Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;)Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;

    move-result-object v6

    invoke-virtual {v6, v1, v0}, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;->expandView(Landroid/view/View;Lcom/zuimeia/suite/expandablecell/listview/ExpandableListItem;)V

    .line 409
    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$4;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;

    # invokes: Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->resetExpandedStatus(Lcom/brixd/niceapp/model/CategoryAppModel;)V
    invoke-static {v6, v0}, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->access$600(Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;Lcom/brixd/niceapp/model/CategoryAppModel;)V

    goto/16 :goto_7

    .line 413
    .end local v2    # "count":I
    .end local v3    # "i":I
    :cond_98
    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter$4;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;

    # getter for: Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->mListView:Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;
    invoke-static {v6}, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;->access$300(Lcom/brixd/niceapp/activity/fragment/adapter/CategoryAdapter;)Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;

    move-result-object v6

    invoke-virtual {v6, v1, v0}, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;->collapseView(Landroid/view/View;Lcom/zuimeia/suite/expandablecell/listview/ExpandableListItem;)V

    goto/16 :goto_7
.end method
